@extends('template.base')
@section('content')
		<div class="container-green" >
		<h2 class="text-center">ORDER ONLINE</h2>
				<div class="btn-group btn-group-justified" style="margin-bottom:20px">
						  <div class="btn-group">
						    <button type="button" class="btn btn-default " disabled><strong>Data Pesanan(Order)</strong></button>
						  </div>
						  <?php if((Session::get('ordertype')=='ID Card') OR (Session::get('ordertype')=='Packaging') OR (Session::get('ordertype')=='Kaos')) { 
						  echo '<div class="btn-group">
						    <button type="button" class="btn btn-default" disabled><strong>Fitur Tambahan</strong></button>
						  </div>';
						  } ?>
						  <div class="btn-group">
						    <button type="button" class="btn btn-default active" ><strong>Data Pemesan(Client)</strong></button>
						  </div>
				</div>
			<label>DFitur tambahan untuk pesanan (Dapat memilih lebih dari satu)</label>
			<hr id="hr1" />
					<div align="left">
					{{Form::open(array(
								'url' => 'order/datapemesan',
								'method' => 'POST'
							))}}
					<div class="row">
					<div class="col-md-8 col-md-offset-1">


				      		<div class="row">
      						<div class="col-lg-6">
				      		<label>Nama pemesan (Anda / Perusahaan)<font color="red">*</font></label>
				      		</div>
      						<div class="col-lg-6">
      						<?php if(Input::Old('nama')<>""){
					            	$value = Input::Old('nama');
					            	}else{
					            	$value = Session::get('nama');
					            	}
					        ?>
				            <input type="text"  class="form-control"  name="nama" placeholder="Nama"style="width:450px;height:30px" value="{{$value}}" /></input>{{$errors->first('nama')}}
				            </div>
				      		</div><br>
				      		<div class="row">
      						<div class="col-lg-6">
							<label>Email <font color="red">*</font></label>
							</div>
      						<div class="col-lg-6">
      						<?php if(Input::Old('email')<>""){
					            	$value = Input::Old('email');
					            	}else{
					            	$value = Session::get('email');
					            	}
					        ?>
				            <input type="text" class="form-control"  name="email" placeholder="Email"style="width:450px;height:30px" value="{{$value}}"/></input>{{$errors->first('email')}}
				      		</div>
				      		</div><br>

				            <div class="row">
      						<div class="col-lg-6">
				            <label>Jenis kelamin <font color="red">*</font></label>
				            </div>
      						<div class="col-lg-6">
      						<?php
      								if(Input::Old('jenis_kelamin')<>""){
					            	$jk = Input::Old('jenis_kelamin');
					            	}else{
					            	$jk = Session::get('jenis_kelamin');
					            	}
      						?>
							<input type="radio" name="jenis_kelamin" value="Laki-laki" <?php if($jk=='Laki-laki'){echo "checked";} ?>> Laki-laki</input> <input type="radio" name="jenis_kelamin" value="Perempuan" <?php if($jk=='Perempuan'){echo "checked";} ?>> Perempuan</input><br>{{$errors->first('jenis_kelamin')}}
				            </div>
				            </div>

				            
				      		<br>

				            <div class="row">
      						<div class="col-lg-6">
				            <label>Alamat <font color="red">*</font></label>
				            </div>
      						<div class="col-lg-6">
      						<?php if(Input::Old('alamat')<>""){
					            	$value = Input::Old('alamat');
					            	}else{
					            	$value = Session::get('alamat');
					            	}
					        ?>
				            <textarea class="form-control"  name="alamat" placeholder="Alamat"style="width:450px;height:50px">{{$value}}</textarea>{{$errors->first('alamat')}}
				    
				            </div>
				            </div>

				      		<br>

				            <div class="row">
      						<div class="col-lg-6">
				            <label>No Telepon (kontak) <font color="red">*</font></label>
				            </div>
      						<div class="col-lg-6">
      						<?php if(Input::Old('kontak')<>""){
					            	$value = Input::Old('kontak');
					            	}else{
					            	$value = Session::get('kontak');
					            	}
					        ?>
							<input type="text" class="form-control"  name="kontak" placeholder="No telepon" style="width:450px;height:30px" value="{{$value}}"/>{{$errors->first('kontak')}}<br>
				            </div>
				            </div>
				            
			                 <br>


				    </div>
				    </div>
				    </div>
			<hr id="hr1" />
			<div class="row">
			<div class="col-md-8 col-md-offset-1">

			<label>Kemungkinan total biaya : </label> 
			<?php if($total_price==0){
					echo "Belum dapat ditentukan, karena pesanan custom";
				}else{ 
					echo 'Rp '.number_format($total_price,0,'.','.').'<font color="red">**</font>';
				} ?>
				<br><br>
			</div>
			</div>
			<hr id="hr1" />
			<font color="red">* Data tidak boleh kosong</font><br>
			<font color="red">** Total biaya dapat berubah berdasarkan harga bahan baku</font><br><br>

			<p style="margin-bottom:55px"><button type="submit" class="btn btn-success pull-right" style="width:125px">Order</button>{{form::close()}}<a href="{{URL::to('order/orderbackend')}}"><button class="btn btn-danger pull-right" style="width:125px; margin-right:5px">Kembali</button></a></p>

			</div>
	
@stop
@stop